﻿using System;
using System.Xml.Serialization;
using MergeTI.TiEntityObjects;
using TI;

namespace TiEntityObject.Contract
{
    public class ContractSupplier 
    {
        public Int64 ContractID { get; set; }

        [XmlElement("participantType")]
        public string ParticipantType { get; set; }

        [XmlElement("inn")]
        public string INN { get; set; }

        [XmlElement("kpp")]
        public string KPP { get; set; }

        [XmlElement("organizationForm")]
        public string  organizationForm { get; set; }

        [XmlElement("idNumber")]
        public string idNumber { get; set; }
        
        [XmlElement("idNumberExtension")]
        public string idNumberExtension { get; set; }

        [XmlElement("organizationName")]
        public string organizationName { get; set; }

        [XmlElement("factualAddress")]
        public string factualAddress { get; set; }

        [XmlElement("postAddress")]
        public string postAddress { get; set; }

        [XmlElement("contactInfo")]
        [LinkObjectAttribute(ChildFieldName = "ParentINN", IsPartialObject = true, ParentFieldName = "INN")]
        public SupplierContactPerson  ContactPerson { get; set; }

        
            
     
    }
}
